package com.xmb.wcapi.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmb.wcapi.dto.ReportDTO;
import com.xmb.wcapi.entity.BaseMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huangping
 * @since 2024-06-14
 */
public interface DjBaseMaterialMapper extends BaseMapper<BaseMaterial> {

    /** 查询指定供应商的母件编码 */
    Page<BaseMaterial> getBaseMaterialList(Page<?> page,  @Param("ew") QueryWrapper<BaseMaterial> ew);

    List<BaseMaterial> getBaseMaterialListNew( @Param("ew") QueryWrapper<BaseMaterial> ew);


    Page<BaseMaterial> getReportList(Page<?> page,@Param("cusCode") String cusCode,@Param("invCode") String invCode,@Param("invDef") String invDef,@Param("level") Integer level,@Param("allId") String allId);


    Page<BaseMaterial> selectTableList(Page<?> page,@Param("djMaterial") String djMaterial);
}
